package com.ruoyi.system.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.SubCommunity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * sub_communityMapper接口
 * 
 * @author wfj
 * @date 2025-10-29
 */
public interface SubCommunityMapper 
{
    /**
     * 查询sub_community
     * 
     * @param id sub_community主键
     * @return sub_community
     */
    public SubCommunity selectSubCommunityById(String id);

    /**
     * 查询sub_community列表
     * 
     * @param subCommunity sub_community
     * @return sub_community集合
     */
    public List<SubCommunity> selectSubCommunityList(SubCommunity subCommunity);

    /**
     * 新增sub_community
     * 
     * @param subCommunity sub_community
     * @return 结果
     */
    public int insertSubCommunity(SubCommunity subCommunity);

    /**
     * 修改sub_community
     * 
     * @param subCommunity sub_community
     * @return 结果
     */
    public int updateSubCommunity(SubCommunity subCommunity);

    /**
     * 删除sub_community
     * 
     * @param id sub_community主键
     * @return 结果
     */
    public int deleteSubCommunityById(String id);

    /**
     * 批量删除sub_community
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSubCommunityByIds(String[] ids);
    @Select("${sqlStr}")
    public List<Map<String, String>> customSql(@Param(value = "sqlStr") String sqlStr);

    List<Map<String, Object>>  selectSubCommunityListForApp(SysUser user);
}
